package common

import (
	"beesoft.ink/application/garage/app/helper"
	"beesoft.ink/application/garage/app/helper/org/ifly"
	"github.com/labstack/echo/v4"
)

var Translation translation

type translation struct{}

func (r translation) Ifly(ctx echo.Context) error {
	res := ifly.New().
		NewTranslation().
		Text("今天天气怎么样", "cn", "en")

	return helper.NewResponse(ctx).ResponseOk(res)
}
func (r translation) IflyV1(ctx echo.Context) error {
	res := ifly.New().
		NewTranslation().
		TextV1("今天天气怎么样", "zh", "en")

	return helper.NewResponse(ctx).ResponseOk(res)
}
func (r translation) IflyN(ctx echo.Context) error {
	res := ifly.New().
		NewTranslation().
		TextN("今天天气怎么样", "zh", "en")

	return helper.NewResponse(ctx).ResponseOk(res)
}

func (r translation) Tencent(ctx echo.Context) error {
	res := ifly.New().
		NewTranslation().
		Text("今天天气怎么样", "cn", "en")

	return helper.NewResponse(ctx).ResponseOk(res)
}
